#include "WPILib.h"

class BambooKicker {
public:
	BambooKicker(UINT32 winch, UINT32 encoder1, UINT32 encoder2, UINT32 solenoid, GenericHID *joystick, DigitalInput *kickerswitch, int kickerButton);
	~BambooKicker(void);
	int Kick(bool kickButton);
	int Teleop();
private:
	enum {fired = 0, latching = 1, wound = 2, primed = 3};
	GenericHID *m_joystick;
	DigitalInput *m_kickerswitch;
	Victor *m_winch;
	Solenoid *m_solenoid;
	Encoder *m_encoder;
	int m_kickerbutton;
	bool m_waiting;
	double m_Time;
};
